/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package HelloApp;

import org.omg.CORBA.*;
/**
 *
 * @author Patrick Füssinger
 * Hello Corba Test
 */
public class HelloServant extends HelloPOA {

    private ORB orb;
    
    public HelloServant() {
    }
    
    public void setORB(ORB orb_val){
        orb = orb_val;
    }
    
    //implement sayHello() operation
    @Override
    public String sayHello(){
        return "\nHello world!!!\n";
    }
    
    //implement shutdown() operation
    @Override
    public void shutdown(){
        orb.shutdown(false);
    }    
}


